﻿using Newtonsoft.Json;
using Org.BouncyCastle.Crypto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business.HYT
{
    /// <summary>
    /// 回用桶出货 主表实体
    /// </summary>
    public class HYTCHHeader : BaseHead
    {
        /// <summary>
        /// 工厂
        /// </summary>
        [JsonProperty(PropertyName = "Factory")]
        public string Factory { get; set; }

        /// <summary>
        /// 原回用桶收货申请号
        /// </summary>
        [JsonProperty(PropertyName = "OriginNumber")]
        public string OriginNumber { get; set; }

        /// <summary>
        /// 是否同步
        /// </summary>
        [JsonProperty(PropertyName = "IsSync")]
        public bool IsSync { get; set; }

        /// <summary>
        /// 同步结果
        /// </summary>
        [JsonProperty(PropertyName = "SyncResult")]
        public string SyncResult { get; set; }

        /// <summary>
        /// 是否同步成功
        /// </summary>
        [JsonProperty(PropertyName = "SyncSuccess")]
        public bool SyncSuccess { get; set; }

        /// <summary>
        /// 状态 0非在途 1在途
        /// </summary>
        [JsonProperty(PropertyName = "Status")]
        public int Status { get; set; } = 0;

        /// <summary>
        /// 同步次数
        /// </summary>
        [JsonProperty(PropertyName = "SyncCount")]
        public int SyncCount { get; set; } = 0;

        /// <summary>
        /// 出货类型 退货、取消收货
        /// </summary>
        [JsonProperty(PropertyName = "OutType")]
        public string OutType { get; set; }

        /// <summary>
        /// 采购单号
        /// </summary>
        [JsonProperty(PropertyName = "PurchaseOrder")]
        public string PurchaseOrder { get; set; }

        /// <summary>
        /// 最后一次同步时间
        /// </summary>
        [JsonProperty(PropertyName = "SyncTime")]
        public DateTime? SyncTime { get; set; }
    }
}
